package com.xqboss.apps.service.order;


import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xqboss.apps.domain.order.OrderGift;
import com.xqboss.apps.mapper.order.OrderGiftMapper;


/**
 * 订单-赠送(OrderGift)表服务实现类
 *
 * @author makejava
 * @since 2023-12-19 15:02:32
 */
@Service
public class OrderGiftService extends ServiceImpl<OrderGiftMapper, OrderGift> {

    /**
     * 通过orderId获取对象
     * @param orderId
     * @return
     */
    public OrderGift getByOrderId(Long orderId) {
        return this.lambdaQuery().eq(OrderGift::getOrderId, orderId).one();
    }
}
